package com.isoftstone.bank.service;


import com.isoftstone.bank.entity.BOrg;
import com.isoftstone.util.TreeNode;

import java.util.List;

/**
 * @Author: xwj
 * @Description
 * @Date: Created in 22:04 2017/11/27
 * @Modified by:
 */
public interface IBOrgService {

    List<TreeNode> selectOrgTreeNodeBySupbak(Long supbak,boolean first);

    List<TreeNode> selectOrgTreeNodeByOrgId(Long orgId);

    List<TreeNode> selectMoveOrgTree(Long supbak, Long orgId);

    List<BOrg> exportExcel();

    BOrg selectByPrimaryKey(Long orgId);

    boolean orgNameIsExsit(String orgName, Long orgid);

    int insertSelective(BOrg record);

    int updateByPrimaryKeySelective(BOrg record);

    int deleteByPrimaryKey(Long orgId);

    Long selectNextOrgId();

}
